const http = uni.$u.http

import qs from 'qs'
// 登录
export const miniappsession = (params, config = {}) => http.post('/api/user/miniappsession', params, config)

// 用户信息
export const userindex = (params, config = {}) => http.post('/api/user/index', params, config)

// 退出登录
export const logout = (params, config = {}) => http.post('/api/user/logout', params, config)

// 微信鉴权
export const wxlogin = (params, config = {}) => http.post('/api/wx/login', params, config)

// 微信登录
export const useraUser = (params, config = {}) => http.post('/api/user/aUser', params, config)


// 关于我们
export const aboutus = (params, config = {}) => http.post('/api/index/aboutus', params, config)

// 绑定银行卡
export const dobind = (params, config = {}) => http.post('/api/user/dobind', params, config)

// 帮助列表
export const helplist = (params, config = {}) => http.post('/api/index/helplist', params, config)

// 我的地址
export const addresslist = (params, config = {}) => http.post('/api/user/addresslist', params, config)

// 投诉提交
export const doappeal = (params, config = {}) => http.post('/api/user/doappeal', params, config)

// 申请提现
export const dowithdraw = (params, config = {}) => http.post('/api/user/dowithdraw', params, config)

// 提现记录
export const withdrawlist = (params, config = {}) => http.post('/api/user/withdrawlist', params, config)

// 获取banner
export const getbanner = (params, config = {}) => http.post('/api/index/banner', params, config)

// 首页推荐厨师
export const cooklist = (params, config = {}) => http.post('/api/index/cooklist', params, config)

// 厨师
export const innercooklist = (params, config = {}) => http.post('/api/cook/cooklist', params, config)

// 厨师详情
export const cookdetail = (params, config = {}) => http.post('/api/index/cookdetail', params, config)

// 预约订餐--地址选择
export const cookaddrlist = (params, config = {}) => http.post('/api/cook/addrlist', params, config)

// 预约订餐--路费计算
export const addrprice = (params, config = {}) => http.post('/api/cook/addrprice', params, config)

// 预约订餐--服务费用
export const cookprice = (params, config = {}) => http.post('/api/cook/cookprice', params, config)
